package ai.people.netmon.framework.exception.enums;

/**
 * 线索异常枚举
 *
 * @author zhenglin
 * @date 2022/06/02
 */
public enum ClueExceptionEnum implements ExceptionEnum{
    /**
     * 提示不存在
     */
    CLUE_DOES_NOT_EXIST(false, 1000000, "线索不存在！"),
    CLUE_SHARED(false, 1000001, "线索已分享不可重复分享！"),
    CLUE_DOES_EXIST(false, 1000002, "线索已存在！"),
    ;


    /**
     * 状态
     */
    final boolean status;
    /**
     * 代码
     */
    final int code;
    /**
     * 消息
     */
    final String message;

    ClueExceptionEnum(boolean status, int code, String message) {
        this.status = status;
        this.code = code;
        this.message = message;
    }

    @Override
    public Integer getCode() {
        return code;
    }

    @Override
    public String getMessage() {
        return message;
    }

    @Override
    public boolean getStatus() {
        return status;
    }
}
